package org.gupao.normal.example.dto;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Author: Mic
 * @公众号： 跟着Mic学架构
 * @官网： https://ke.gupaoedu.cn
 * @Org: 咕泡教育
 **/
public class CouponDto implements Serializable {

    @NotNull
    @Size(min=1,max = 20)
    private String name;

    @Min(1)
    @Max(1000)
    private int num;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "CouponDto{" +
                "name='" + name + '\'' +
                ", num=" + num +
                '}';
    }
}
